package com.molichuxing.services.infrastructure.dto.response;

import com.molichuxing.framework.dto.ResponseRootDto;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 智能终端升级返回信息
 */
public class TerminalUpgradedDto extends ResponseRootDto {
    private static final long serialVersionUID = 1L;

    /**
     *当前APP版本
     */
    private String version;

    /**
     *升级版本URL
     */
    private String updateUrl;

    /**
     *升级标题
     */
    private String title;

    /**
     *升级描述
     */
    private String description;

    /**
     *终端版本
     */
    private String terminalVersion;

    /**
     *渠道号
     */
    private String channelVersion;

    /**
     * 强制升级0：非强制，1：强制
     */
    private Integer isUpgraded;

    public TerminalUpgradedDto() {
    }

    public TerminalUpgradedDto(String version, String updateUrl, String title, String description, String uuid) {
        this.version = version;
        this.updateUrl = updateUrl;
        this.title = title;
        this.description = description;
    }
    public TerminalUpgradedDto(String terVersion, String chaVersion, String version, String updateUrl, String title,
                               String description, String uuid, Integer isUpgraded) {
        this.terminalVersion = terVersion;
        this.channelVersion = chaVersion;
        this.version = version;
        this.updateUrl = updateUrl;
        this.title = title;
        this.description = description;
        this.isUpgraded = isUpgraded;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getUpdateUrl() {
        return updateUrl;
    }

    public void setUpdateUrl(String updateUrl) {
        this.updateUrl = updateUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTerminalVersion() {
        return terminalVersion;
    }

    public void setTerminalVersion(String terminalVersion) {
        this.terminalVersion = terminalVersion;
    }

    public String getChannelVersion() {
        return channelVersion;
    }

    public void setChannelVersion(String channelVersion) {
        this.channelVersion = channelVersion;
    }

    public Integer getIsUpgraded() {
        return isUpgraded;
    }

    public void setIsUpgraded(Integer isUpgraded) {
        this.isUpgraded = isUpgraded;
    }

    @Override
    public String toString() {
        return "TerminalUpgradedDto{" +
                "version='" + version + '\'' +
                ", updateUrl='" + updateUrl + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", terminalVersion='" + terminalVersion + '\'' +
                ", channelVersion='" + channelVersion + '\'' +
                ", isUpgraded=" + isUpgraded +
                '}';
    }
}
